function validateValue(){
	var field = document.getElementById("valoareCustom");
	field.style.backgroundColor = 'white';
	if(isNaN(field.value) || field.value == ''){
		field.style.backgroundColor = "#E60000";
		return false;
	}
	return true;
}

function validateDenumire(){
	var field = document.getElementById("denumireCustom");
	field.style.backgroundColor = 'white';
	if(field.value == null || field.value == ''){
		field.style.backgroundColor = "#E60000";
		return false;
	}
	return true;
}

function validateCustomForm(){
	var v = validateValue(); 
	return validateDenumire() && v;
}
